// #1. applyMiddleware
import { createStore, applyMiddleware } from 'redux'
// #2. 中间件
import thunk from 'redux-thunk'
import logger from 'redux-logger'
import rootReducer from './reducers'
// #3. 使用
export default createStore(rootReducer, applyMiddleware(thunk, logger))